﻿<%@ Page Language="C#" MasterPageFile="app-frame.master" AutoEventWireup="true" CodeFile="RoleSecurity.aspx.cs" Inherits="RoleSecurity" Title="MaxBlox" EnableEventValidation="false" ValidateRequest="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
    <script type="text/javascript" src="scripts/RoleSecurity.js" language="javascript"></script>
    <table style="width: 100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td><asp:Label ID="lblMessage" runat="server" CssClass="defaultFont" Font-Size="X-Small" ForeColor="Black"></asp:Label></td>
        </tr>
        <tr>
            <td id="td_Page_ToopTip" runat="server"></td>
        </tr>
    </table>
    <table id="TABLE1" style="width: 100%" cellpadding="2" cellspacing="0" border="0" runat="server">
    <tr>
    <td>
    <table style="width: 100%" class="Dynamic_PageHeaderRow">
        <tr>
            <td width="30%" colspan="3">
                <asp:Label ID="lblHeader" runat="server" Text="Role Details - Add"></asp:Label>
            </td>
            <td id="addButtons" width="33%" nowrap="nowrap" align="center" style="padding-left:0px">
                <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click"  Text="Save" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSave','Saving....');disableThis('ctl00_ContentPlaceHolder3_btnSave_bottom','Saving....');disableThis('ctl00_ContentPlaceHolder3_btnReset_bottom','Reset');" />
                <asp:Button ID="btnUpdate" runat="server" OnClick="btnUpdate_Click" Text="Save" Visible="false" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnUpdate','Saving....');disableThis('ctl00_ContentPlaceHolder3_btnUpdate_bottom','Saving....');disableThis('ctl00_ContentPlaceHolder3_btnReset_bottom','Reset');" />
                <asp:Button ID="btnReset" runat="server" Text="Reset" UseSubmitBehavior="false" OnClick="btnReset_Click"  />
                <asp:Label ID="lblViewButton" runat="server" Text=""></asp:Label>
            </td>
            <td width="33%" align="right">
                <asp:Label ID="lblPrintButton" runat="server" Text=""></asp:Label>
            </td>
        </tr>
    </table>
    <table style="width: 100%" cellpadding="2" cellspacing="2" border="0">
        <tr>
            <td class="Dynamic_HtmlTableCell">
                <asp:Label ID="lbl_role_id" runat="server" CssClass="controlLabelFont" Text="Role ID" Visible="false"></asp:Label>
                <asp:TextBox ID="p_rol_role_id" runat="server" CssClass="controlFont controlWidth" type="text" maxlength="100" Visible="false"></asp:TextBox>
                
                <asp:Label ID="lbl_role_name" runat="server" CssClass="controlLabelFont" Text="Role Name"></asp:Label><br/>
                <asp:TextBox ID="p_rol_role_name" runat="server" CssClass="controlFont controlWidth" type="text" maxlength="100"></asp:TextBox>
                <img alt="Required Field" src="Images/star.gif"/>
                <asp:RequiredFieldValidator ID="rfv_p_rol_role_id" runat="server" ErrorMessage="This is a requied field." Display="None" ControlToValidate="p_rol_role_name" />
                <cc1:ValidatorCalloutExtender ID="vce_p_rol_role_id" runat="server" TargetControlID="rfv_p_rol_role_id" WarningIconImageUrl="Images/warning_small.gif" HighlightCssClass="maskInvalid" />
            </td>
            <td class="Dynamic_HtmlTableCell">
                <asp:Label ID="lbl_default_dashboard" runat="server" CssClass="controlLabelFont" Text="Default Dashboard"></asp:Label><br/>
                <asp:DropDownList ID="p_rol_default_dashboard" runat="server" CssClass="controlFont" type="text" maxlength="100"></asp:DropDownList>
                <a href="displaygrid.aspx?pgs_id=ca08b1b6c96f9950&mn=ca4c33441454f2f6">
                    <img class="SearchPopup" border="0" alt="Click here for Dashboard Designer page" src="Images/list.gif"/>
                </a>
            </td>
        </tr>
        <tr>
            <td class="Dynamic_HtmlTableCell" colspan="2">
                <asp:Label ID="lbl_owner_id" runat="server" CssClass="controlLabelFont" Text="Owner"></asp:Label><br/>
                <asp:DropDownList ID="p_rol_owner_id_dd" runat="server" CssClass="controlFont" Visible="False"></asp:DropDownList>
                <asp:TextBox ID="txt_p_rol_owner_id" runat="server" CssClass="controlFont"></asp:TextBox>
                <asp:HiddenField ID="p_rol_owner_id" runat="server" />
                <img id="imgOwnerSearch" runat="server" alt="Click here for Lookup Window" src="Images/search.gif" class="SearchPopup" onclick="javascript:openlookupwindow('p_rol_owner_id','txt_p_rol_owner_id','f496930dfe0b690f','','');" />
            </td>
        </tr>
        <tr style="padding-top:5px;">
            <td id="td2" valign="top" align="left" colspan="2">
                <span class="defaultFont" style="font-size: 8pt;">
                    Fields marked with (<img src="Images/star.gif"/>) are required.
                </span>
            </td>
        </tr>
    </table>
    <table style="width: 100%" cellpadding="2" cellspacing="0" border="0">
        <tr class="Grid_Header">
            <td class="Grid_Header_Cell" valign="middle" align="left" width="60%">&nbsp;Access Rights</td>
        </tr>
        <tr>
        <td>
    <div>
        <div id="tabs" style="width:100%; margin:auto; background:transparent;">
            <ul>
		        <li><a href="#tabs-1">Menu</a></li>
		        <li><a href="#tabs-2">Object</a></li>
                <li><a href="#tabs-3">Report</a></li>
                <li id="tab_quick_links" runat="server" visible="false"><a href="#tabs-4">Quick Links</a></li>
	        </ul>        
            <div id="tabs-1" style="background:white;">
                <table cellspacing="0" cellpadding="0" style="margin:auto; padding-bottom:5px; width:100%;">
                    <tr>
                        <td valign="middle" align="left" class="controlLabelFont">
                            <input id="textsearch_menu" type="text" placeholder="Search..." title="Search for menu..." class="controlFont"/>
                        </td>
                    </tr>
                </table>
                <table id="tb_Menu" runat="server" class="NotesTable" cellspacing="0" cellpadding="0" style="margin:auto; width:100%;">
                    <tr class="Grid_Header">
                        <td class="Grid_Header_Cell" valign="middle" align="left" width="60%">&nbsp;Menu</td>
                        <td class="Grid_Header_Cell" valign="middle" align="left" width="40%">Is Accessible</td>
                    </tr>
                </table>
            </div>
            <div id="tabs-2" style="background:white;">
                <table cellspacing="0" cellpadding="0" style="margin:auto; padding-bottom:5px; width:100%;">
                    <tr>
                        <td valign="middle" align="left" class="controlLabelFont">
                            <input id="textsearch_object" type="text" placeholder="Search..." title="Search for object..." class="controlFont"/>
                        </td>
                    </tr>
                </table>
                <table id="tb_object" runat="server" class="NotesTable" cellspacing="0" cellpadding="0" style="margin:auto; width:100%;">
                    <tr class="Grid_Header">
                        <td class="Grid_Header_Cell" valign="middle" align="left" width="45%">&nbsp;Object</td>
                        <td class="Grid_Header_Cell" valign="middle" align="left" width="10%">Read</td>
                        <td class="Grid_Header_Cell" valign="middle" align="left" width="10%">Add</td>
                        <td class="Grid_Header_Cell" valign="middle" align="left" width="10%">Edit</td>
                        <td class="Grid_Header_Cell" valign="middle" align="left" width="10%">Delete</td>
                        <td class="Grid_Header_Cell" valign="middle" align="left" width="15%">Change Owner</td>
                    </tr>
                </table>
            </div>
            <div id="tabs-3" style="background:white;">
                <table cellspacing="0" cellpadding="0" style="margin:auto; padding-bottom:5px; width:100%;">
                    <tr>
                        <td valign="middle" align="left" class="controlLabelFont">
                            <input id="textsearch_report" type="text" placeholder="Search..." title="Search for report..." class="controlFont"/>
                        </td>
                    </tr>
                </table>
                <table id="tb_report" runat="server" class="NotesTable" cellspacing="0" cellpadding="0" border="0" style="margin:auto; width:100%;">
                    <tr class="Grid_Header">
                        <td class="Grid_Header_Cell" valign="middle" align="left" width="60%">&nbsp;Report</td>
                        <td class="Grid_Header_Cell" valign="middle" align="left" width="40%">Is Accessible</td>
                    </tr>
                </table>
            </div>
            <div id="tabs-4" style="background:white;">
                <table cellspacing="0" cellpadding="0" style="margin:auto; padding-bottom:5px; width:100%;">
                    <tr>
                        <td valign="middle" align="left" class="controlLabelFont">
                            <input id="textsearch_qlinks" runat="server" type="text" placeholder="Search..." title="Search for Quick links..." class="controlFont" visible="false"/>
                        </td>
                    </tr>
                </table>
                <table id="tb_quick_links" runat="server" class="NotesTable" cellspacing="0" cellpadding="0" border="0" style="margin:auto; width:100%;" visible="false">
                    <tr class="Grid_Header">
                        <td class="Grid_Header_Cell" valign="middle" align="left" width="60%">&nbsp;Quick Links</td>
                        <td class="Grid_Header_Cell" valign="middle" align="left" width="40%">Is Accessible</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    </td>
    </tr>
    </table>
    <table style="width: 100%" class="Dynamic_PageHeaderRow">
        <tr>
            <td width="30%" colspan="3">
            </td>
            <td id="Td1" width="33%" nowrap="nowrap" align="center" style="padding-left:0px">
                <asp:Button ID="btnSave_bottom" runat="server" OnClick="btnSave_Click"  Text="Save" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSave','Saving....');disableThis('ctl00_ContentPlaceHolder3_btnSave_bottom','Saving....');disableThis('ctl00_ContentPlaceHolder3_btnReset_bottom','Reset');" />
                <asp:Button ID="btnUpdate_bottom" runat="server" OnClick="btnUpdate_Click" Text="Save" Visible="false" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnUpdate','Saving....');disableThis('ctl00_ContentPlaceHolder3_btnUpdate_bottom','Saving....');disableThis('ctl00_ContentPlaceHolder3_btnReset_bottom','Reset');" />
                <asp:Button ID="btnReset_bottom" runat="server" Text="Reset" UseSubmitBehavior="false" OnClick="btnReset_Click"  />
            </td>
            <td width="33%" align="right"> </td>
        </tr>
    </table>
    </td>
    </tr>
    </table>
        <asp:HiddenField ID="p_rol_af_row_id" runat="server" />
        <asp:HiddenField ID="p_rol_created_at" runat="server"></asp:HiddenField>
        <asp:HiddenField ID="p_rol_created_by" runat="server"></asp:HiddenField>
</asp:Content>